package com.yongbao.context;

/**
 * 系统上下文
 */
public class SystemContext {
    private static final ThreadLocal<SystemInfo> sysContext = new ThreadLocal<SystemInfo>();

    public static SystemInfo getSyscontext() {
        return sysContext.get();
    }

    public static void setSysContext(SystemInfo systemInfo) {
        sysContext.set(systemInfo);
    }

    public static void clean() {
        sysContext.remove();
    }
}
